package c.h.a.u;

import android.graphics.Point;
import c.h.a.m0.h;
import com.liuzh.deviceinfo.DeviceInfoApp;

/* compiled from: AdConstants */
public class a {
    public static final c.h.b.a.a.a a;
    public static final c.h.b.a.a.a b;
    public static final c.h.b.a.a.a c;
    public static final c.h.b.a.a.a d;
    public static final c.h.b.a.a.a e;
    public static final c.h.b.a.a.a f;
    public static final c.h.b.a.a.a g;
    public static final c.h.b.a.a.a h;

    static {
        c.h.b.a.a.a aVar = new c.h.b.a.a.a();
        aVar.b = 1;
        aVar.a = DeviceInfoApp.c.getString(2131689521);
        aVar.c = 1;
        aVar.d = 3;
        aVar.f = 2131492903;
        aVar = new c.h.b.a.a.a();
        aVar.b = 2;
        aVar.a = DeviceInfoApp.c.getString(2131690151);
        aVar.c = 1;
        aVar.e = new Point();
        a = aVar;
        aVar = new c.h.b.a.a.a();
        aVar.b = 1;
        aVar.a = DeviceInfoApp.c.getString(2131689519);
        aVar.c = 1;
        aVar.d = 3;
        aVar.f = 2131492903;
        aVar = new c.h.b.a.a.a();
        aVar.b = 2;
        aVar.a = DeviceInfoApp.c.getString(2131690149);
        aVar.c = 1;
        aVar.e = new Point();
        b = aVar;
        aVar = new c.h.b.a.a.a();
        aVar.b = 1;
        aVar.a = DeviceInfoApp.c.getString(2131689518);
        aVar.c = 1;
        aVar.d = 1;
        aVar.f = 2131492902;
        aVar = new c.h.b.a.a.a();
        aVar.b = 2;
        aVar.a = DeviceInfoApp.c.getString(2131690147);
        aVar.c = 2;
        aVar.e = new Point();
        c = aVar;
        aVar = new c.h.b.a.a.a();
        aVar.b = 1;
        aVar.a = DeviceInfoApp.c.getString(2131689515);
        aVar.c = 2;
        aVar = new c.h.b.a.a.a();
        aVar.b = 2;
        aVar.a = DeviceInfoApp.c.getString(2131690146);
        aVar.c = 2;
        aVar.e = new Point();
        d = aVar;
        aVar = new c.h.b.a.a.a();
        aVar.b = 2;
        aVar.a = DeviceInfoApp.c.getString(2131690153);
        aVar.c = 4;
        e = aVar;
        aVar = new c.h.b.a.a.a();
        aVar.b = 2;
        aVar.a = DeviceInfoApp.c.getString(2131690152);
        aVar.c = 5;
        f = aVar;
        aVar = new c.h.b.a.a.a();
        aVar.b = 2;
        aVar.a = DeviceInfoApp.d(2131690150);
        aVar.c = 1;
        aVar.e = new Point();
        g = aVar;
        aVar = new c.h.b.a.a.a();
        aVar.b = 2;
        aVar.a = DeviceInfoApp.d(2131690148);
        aVar.c = 1;
        aVar.e = new Point();
        h = aVar;
        a();
    }

    public static void a() {
        int i;
        Point point;
        c.h.b.a.a.a aVar;
        int i2;
        Point k = h.k();
        int i3 = (int) (((float) k.x) / (((float) DeviceInfoApp.c.getResources().getDisplayMetrics().densityDpi) / 160.0f));
        int i4 = (int) (((float) k.y) / (((float) DeviceInfoApp.c.getResources().getDisplayMetrics().densityDpi) / 160.0f));
        Object obj = DeviceInfoApp.c.getResources().getConfiguration().orientation == 2 ? 1 : null;
        c.h.b.a.a.a aVar2 = c;
        while (true) {
            i = 620;
            if (aVar2 == null) {
                break;
            }
            if (aVar2.b == 2) {
                point = aVar2.e;
                int i5 = i3 - 16;
                point.x = i5;
                if (i5 > 620) {
                    point.x = 620;
                }
                point.y = (int) Math.min((double) ((int) (((obj != null ? 140.0f : 160.0f) / 900.0f) * ((float) point.x))), ((double) i4) * 0.2d);
            }
            aVar2 = null;
        }
        aVar2 = d;
        while (aVar2 != null) {
            if (aVar2.b == 2) {
                point = aVar2.e;
                point.x = i3;
                if (i3 > i) {
                    point.x = i;
                }
                point.y = (int) Math.min((double) ((int) (((obj != null ? 140.0f : 160.0f) / 900.0f) * ((float) point.x))), ((double) i4) * 0.2d);
            }
            aVar2 = null;
            i = 620;
        }
        for (aVar = a; aVar != null; aVar = null) {
            if (aVar.b == 2) {
                k = aVar.e;
                i2 = i3 - 16;
                k.x = i2;
                k.y = 0;
                if ((obj != null || i2 > 450) && i2 > 450) {
                    k.x = 450;
                }
            }
        }
        for (aVar = b; aVar != null; aVar = null) {
            if (aVar.b == 2) {
                k = aVar.e;
                i2 = i3 - 30;
                k.x = i2;
                k.y = 0;
                if ((obj != null || i2 > 450) && i2 > 450) {
                    k.x = 450;
                }
            }
        }
        for (aVar = g; aVar != null; aVar = null) {
            if (aVar.b == 2) {
                k = aVar.e;
                i2 = i3 - 30;
                k.x = i2;
                k.y = 0;
                if ((obj != null || i2 > 450) && i2 > 450) {
                    k.x = 450;
                }
            }
        }
        for (aVar = h; aVar != null; aVar = null) {
            if (aVar.b == 2) {
                k = aVar.e;
                i2 = i3 - 30;
                k.x = i2;
                k.y = 0;
                if ((obj != null || i2 > 450) && i2 > 450) {
                    k.x = 450;
                }
            }
        }
    }
}
